package com.zm.demo.webservice.server.impl;

import com.zm.demo.webservice.server.HelloService;
import com.zm.demo.webservice.server.dto.UserDTO;

import javax.jws.WebService;
import javax.xml.bind.annotation.XmlAnyElement;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2020/2/20.
 */
@WebService(endpointInterface = "com.zm.demo.webservice.server.HelloService",
            serviceName = "helloService",
        targetNamespace = "http://server.webservice.demo.zm.com/")
public class HelloServiceImpl implements HelloService {

    @Override
    @XmlAnyElement
    public UserDTO sayHello(String name) {
        UserDTO userDTO = new UserDTO();
        userDTO.setName(name);
        return userDTO;
    }

    @Override
    public UserDTO getUser(UserDTO userDTO) {
        return userDTO;
    }

    @Override
    public List<UserDTO> getUser1(List<UserDTO> userDTO) {
        return userDTO;
    }
}
